// 封装所有请求操作
import axios from '../../index'
import qs from 'qs'


// 获取采购列表接口
export const purchaseList = (data) => {
    return axios({
        url: '/purSelStock/queryPurchase',
        method: 'POST',
        data: qs.stringify(data)
    })
}

// 添加采购接口
export const purchaseAdd = (datas) => {
    return axios({
        url: '/purSelStock/addSupply',
        method: 'POST',
        data: datas
    })
}

// 修改采购接口
export const purchaseEdit = (datas) => {
    return axios({
        url: '/purSelStock/updateSupply',
        method: 'POST',
        data: datas
    })
}

// 删除采购接口
export const purchaseDel = (datas) => {
    return axios({
        url: '/purSelStock/deletePurchase',
        method: 'POST',
        data: qs.stringify(datas)
    })
}
